﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="ListContact.aspx.cs" Inherits="MockPrjTeam2.Pages.Views.ListContact" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0" cellspacing="0" style="width: 100%">
  <tr>
      <td colspan="2" style="font-family: Arial, Helvetica, sans-serif; font-size: large; color: #639A18;
                font-weight: bold; width: 592px;">
                Search Contact
      </td>
      
  </tr>
  <tr>
    <td>
        First Name:&nbsp&nbsp<asp:TextBox ID="txtFirstName" runat="server" Width="200px"></asp:TextBox>
    </td>
    <td>
        Surname:&nbsp&nbsp<asp:TextBox ID="txtSurName" runat="server"></asp:TextBox>
    </td>    
  </tr>
  <tr>
    <td colspan="2">        
        <asp:Button ID="btSearch" runat="server" Text="Search Contact" 
            onclick="btSearch_Click" />&nbsp&nbsp
        <asp:Button ID="btCreate" runat="server" Text="Create" 
            onclick="btCreate_Click" />&nbsp&nbsp
        <asp:Button ID="btClear" runat="server" Text="Clear" /> &nbsp&nbsp
        </td>    
  </tr>
  <tr>
    <td colspan="2">        
        
        <asp:CheckBox ID="cbInActive" runat="server" Text="Include in-active contact" />
        
    </td>    
  </tr>
  <tr>
    <td colspan="3">
    
        <asp:GridView ID="GVSearchContact" runat="server" AutoGenerateColumns="False" 
            AllowPaging="True" CellPadding="4" ForeColor="#333333" GridLines="None" 
            onpageindexchanging="GVSearchContact_PageIndexChanging" 
            onrowcommand="GVSearchContact_RowCommand" Width="725px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>                                                                
                <asp:TemplateField HeaderText="Contact Name" ControlStyle-ForeColor="Black">                
                <ItemTemplate>
                   <asp:LinkButton ID="btupdate" runat="server" Text='<%#Eval("ContactName") %>' CommandName="Update" CommandArgument='<%#Eval("ContactID") %>'></asp:LinkButton>                       
                </ItemTemplate>
                <ControlStyle ForeColor="Black"></ControlStyle>                
                </asp:TemplateField>                                
                <asp:BoundField DataField = "MobilePhone" HeaderText="Mobile Phone" /> 
                <asp:BoundField DataField = "Email" HeaderText="Email" /> 
                <asp:BoundField DataField = "ContactType" HeaderText="Contact Type" />                 
                <asp:TemplateField HeaderText="Active">
                <ItemTemplate>                    
                        <asp:CheckBox ID="chkStatus" runat="server"
                            AutoPostBack="true" OnCheckedChanged="ChkStatusOnCheckedChanged"
                            Checked='<%# Convert.ToBoolean(Eval("IsActive")) %>' />
                </ItemTemplate>  
                </asp:TemplateField>               
            </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
        </asp:GridView>
    
    </td>
  </tr>  
 </table>
</asp:Content>
